<style type="text/css">
    .sub-export{
        margin-top: 25px;
    }
    .sub-export input[type='submit']{
        margin-right: 65px;
        width: 170px;
    }
    .error{
        color: red;
        font-size: 15px;
        font-weight: bold;
    }
</style>
<div class="form">
    <?php $form = $this->beginWidget('CActiveForm', array(
	'id' => 'encuestas-form',
	'enableAjaxValidation' => false,
    ));
    ?>
    <div class="row">
    <?php
        $model = Encuestas::model();
        echo CHtml::label('Encuesta','Encuesta'); 
    ?>
    <?php echo $form->dropDownList($model, 'ENCID', GxHtml::listDataEx($model->findAllAttributes(null, true)), array('class'=>'Ccombo','style'=>'width:500px;')); ?>
    </div><!-- row -->
    <div class="error" >
       <?php echo $resp ?>
    </div>
    <div class="sub-export" >
    <?php
    echo GxHtml::submitButton(Yii::t('app', 'Generar y exportar'), array('class'=>'add_input generatedreport'));
    echo GxHtml::submitButton(Yii::t('app', 'Exportar'), array('class'=>'add_input exportreport'));
    $this->endWidget();
    ?>
    </div>
</div>
<script type="text/javascript">
$(function(){
    $(".generatedreport").click(function(){
        //$(".upprogress").show();
    });
});
</script>
<div class="upprogress">
    <img alt="Cargando..." src="images/loading.gif" />
</div>